package com.linked.mystyle.food.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.linked.mystyle.food.bean.FoodInfoPO;
import com.linked.mystyle.food.bean.FoodRandomParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface IFoodInfoMapper extends BaseMapper<FoodInfoPO> {
    FoodInfoPO giveRandomFood(@Param("param") FoodRandomParam param, @Param("foodNum") int foodNum);

    int queryFoodTotalCount(@Param("param") FoodRandomParam param);
}
